package com.pc.scrs.bean.bo;

import lombok.Data;

@Data
public class RecommendResult implements Comparable<RecommendResult>{

    private String subjectTitle;
    private Double recommendDegree;


    @Override
    public int compareTo(RecommendResult o) {
        //按recommendDegree降序
        return (int) (o.getRecommendDegree()*10-this.getRecommendDegree()*10);
    }
    @Override
    public String toString() {
        return "RecommendResult{" +
                "subjectTitle='" + subjectTitle + '\'' +
                ", recommendDegree=" + recommendDegree +
                '}';
    }

}
